<span page-title>{{ 'OSTree Branches' | translate }}</span>

<div data-extend-template="layouts/table-with-header.html">

  <header data-block="header" translate>
    OSTree Branches
  </header>

  <div data-block="search-filter">
    <select class="form-control" ng-model="repository" ng-options="repository.name for (id, repository) in repositories"></select>
  </div>

  <span data-block="no-rows-message" translate>
    You currently don't have any OSTree Branches.
  </span>

  <div data-block="table">
    <table class="table table-striped table-bordered" ng-class="{'table-mask': table.working}">
      <thead>
        <tr bst-table-head>
          <th bst-table-column="name">{{ "Name" | translate }}</th>
          <th bst-table-column="version">{{ "Version" | translate }}</th>
        </tr>
      </thead>

      <tbody>
        <tr bst-table-row ng-repeat="branch in table.rows">
          <td bst-table-cell>
            <a ui-sref="ostree-branch.info({branchId: branch.id})">
              {{ branch.name }}
            </a>
          </td>
          <td bst-table-cell>
            {{ branch.version }}
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</div>